#!/bin/sh
TFILE="/media/testdrive/result.txt"

# Esperamos hasta que se haya completado el arranque
while ! test -f /var/run/runlevel; do
	sleep 1
done

echo "----- STARTING TEST -----"
echo " EXECUTING TEST IN `pwd`" > $TFILE

echo "OK" >> $TFILE 
reboot
